<?php

declare( strict_types = 1 );

namespace App\Common\Model\Base\DataUnit;

use App\Common as com;
use App\Common\Model\Base as nameBase;
use App\Common\Model\Base\DataUnit as nameDataUnit;

class FieldData extends nameDataUnit\Base {

	/**
	 * 魔术方法->call
	 * @param string $name 方法名
	 * @param array $arguments 参数[]
	 * @return $this
	 * @throws
	 */
	public function __call( string $name, array $arguments ):self {
		$this->getDataUnit()->addField( com\Lib\Fun\Str::parseNameAsUnderline( $name ) );
		return $this;
	}

}
